import { createI18n } from 'vue-i18n';
import en from './lang/en';
import zh_cn from './lang/zh-cn';
import cache from '@/utils/cache'

const locale = cache.getLocale();
const i18n = createI18n({
    locale: locale,
    fallbackLocale: locale,
    messages: {
        'en': en,
        'zh-cn': zh_cn
    }
});

export default i18n;